﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%--Form load content menu--%>

<%--Delete--%>
     <% using (Ajax.BeginForm("Delete", "NhatKyBanHang", new AjaxOptions { UpdateTargetId = "list_NKBH", OnSuccess = "ProcessResponse" }, new { name = "FormDelete" }))
   { 
        %>

            <%: Html.TextBox("idNKBH", "", new { style="display:none;"})%>
            <input type="submit" name="btnDelete" style="display:none" />
        <%
   }
     %>

    <%--Edit--%>
     <% using (Ajax.BeginForm("Edit", "NhatKyBanHang", new AjaxOptions { UpdateTargetId = "formadd", OnSuccess = "ProcessResponse" }, new { name = "FormEdit" }))
   { 
        %>
            <%: Html.TextBox("ngayban_sendedit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("chuhang_sendedit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("diachi_sendedit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("phanloai_sendedit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("thanhtoan_sendedit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("xetangbo_sendedit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("diadiemtangbo_sendedit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("xevanchuyen_sendedit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("sanpham_sendedit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("nhapxuat_sendedit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("bentravanchuyen_sendedit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("khachhang_sendedit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("ghichu_sendedit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("tracuoctb_sendedit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("tracuocvc_sendedit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("pagesize_sendedit", "50", new { style = "display:none;" })%>
            <%: Html.TextBox("page_sendedit", "1", new { style = "display:none;" })%>
            <%: Html.TextBox("idNKBH_Edit", "", new { style = "display:none;" })%>
            <input type="submit" name="btnEdit" style="display:none" />
        <%
   }
     %>

      <%--OK--%>
     <% using (Ajax.BeginForm("OK", "NhatKyBanHang", new AjaxOptions { UpdateTargetId = "list_NKBH", OnSuccess = "ProcessResponse" }, new { name = "FormOK" }))
   { 
        %>

            <%: Html.TextBox("idNKBH_OK", "", new { style = "display:none;" })%>
            <input type="submit" name="btnOK" style="display:none" />
        <%
   }
     %>

         <%--Load limit page--%>
     <% using (Ajax.BeginForm("LoadLimitPage", "NhatKyBanHang", new AjaxOptions { UpdateTargetId = "list_NKBH", OnSuccess = "ProcessResponse_LoadLimitPage" }, new { name = "FormLoadLimitPage" }))
   { 
        %>
         <%: Html.TextBox("ngayban_limit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("chuhang_limit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("diachi_limit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("phanloai_limit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("thanhtoan_limit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("xetangbo_limit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("diadiemtangbo_limit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("xevanchuyen_limit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("sanpham_limit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("nhapxuat_limit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("bentravanchuyen_limit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("khachhang_limit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("ghichu_limit", "", new { style = "display:none;" })%>
             <%: Html.TextBox("tracuoctb_limit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("tracuocvc_limit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("pagesize", "", new { style = "display:none;" })%>
            <input type="submit" name="btnLoadLimitPage" style="display:none" />
        <%
   }
     %>

       <%--Load page--%>
     <% using (Ajax.BeginForm("LoadPage", "NhatKyBanHang", new AjaxOptions { UpdateTargetId = "list_NKBH", OnSuccess = "ProcessResponse_LoadPage" }, new { name = "FormLoadPage" }))
   { 
        %>
            <%: Html.TextBox("ngayban_paging", "", new { style = "display:none;" })%>
            <%: Html.TextBox("chuhang_paging", "", new { style = "display:none;" })%>
            <%: Html.TextBox("diachi_paging", "", new { style = "display:none;" })%>
            <%: Html.TextBox("phanloai_paging", "", new { style = "display:none;" })%>
            <%: Html.TextBox("thanhtoan_paging", "", new { style = "display:none;" })%>
            <%: Html.TextBox("xetangbo_paging", "", new { style = "display:none;" })%>
            <%: Html.TextBox("diadiemtangbo_paging", "", new { style = "display:none;" })%>
            <%: Html.TextBox("xevanchuyen_paging", "", new { style = "display:none;" })%>
            <%: Html.TextBox("sanpham_paging", "", new { style = "display:none;" })%>
            <%: Html.TextBox("nhapxuat_paging", "", new { style = "display:none;" })%>
            <%: Html.TextBox("bentravanchuyen_paging", "", new { style = "display:none;" })%>
            <%: Html.TextBox("khachhang_paging", "", new { style = "display:none;" })%>
            <%: Html.TextBox("ghichu_paging", "", new { style = "display:none;" })%>
             <%: Html.TextBox("tracuoctb_paging", "", new { style = "display:none;" })%>
            <%: Html.TextBox("tracuocvc_paging", "", new { style = "display:none;" })%>
            <%: Html.TextBox("page", "", new { style = "display:none;" })%>
            <input type="submit" name="btnLoadPage" style="display:none" />
        <%
   }
     %>


     <%--Load total money--%>
     <% using (Ajax.BeginForm("LoadTotalMoney", "NhatKyBanHang", new AjaxOptions { UpdateTargetId = "", OnSuccess = "ProcessResponse_LoadTotalMoney" }, new { name = "FormLoaTotalMoney" }))
   { 
        %>         
        <%: Html.TextBox("ngayban_totalmoney", "", new { style = "display:none;" })%>
            <%: Html.TextBox("chuhang_totalmoney", "", new { style = "display:none;" })%>
            <%: Html.TextBox("diachi_totalmoney", "", new { style = "display:none;" })%>
            <%: Html.TextBox("phanloai_totalmoney", "", new { style = "display:none;" })%>
            <%: Html.TextBox("thanhtoan_totalmoney", "", new { style = "display:none;" })%>
            <%: Html.TextBox("xetangbo_totalmoney", "", new { style = "display:none;" })%>
            <%: Html.TextBox("diadiemtangbo_totalmoney", "", new { style = "display:none;" })%>
            <%: Html.TextBox("xevanchuyen_totalmoney", "", new { style = "display:none;" })%>
            <%: Html.TextBox("sanpham_totalmoney", "", new { style = "display:none;" })%>
            <%: Html.TextBox("nhapxuat_totalmoney", "", new { style = "display:none;" })%>
            <%: Html.TextBox("bentravanchuyen_totalmoney", "", new { style = "display:none;" })%>
            <%: Html.TextBox("khachhang_totalmoney", "", new { style = "display:none;" })%>
            <%: Html.TextBox("ghichu_totalmoney", "", new { style = "display:none;" })%>
             <%: Html.TextBox("tracuoctb_totalmoney", "", new { style = "display:none;" })%>
            <%: Html.TextBox("tracuocvc_totalmoney", "", new { style = "display:none;" })%>
            <input type="submit" name="btnLoadTotalMoney" style="display:none" />
        <%
   }
     %>

     <%--Load page Search--%>
     <% using (Ajax.BeginForm("LoadPageSearch", "NhatKyBanHang", new AjaxOptions { UpdateTargetId = "list_NKBH", OnSuccess = "ProcessResponse_LoadPageSearch" }, new { name = "FormLoadPageSearch" }))
   { 
        %>

            <%: Html.TextBox("ngayban", "", new { style = "display:none;" })%>
            <%: Html.TextBox("chuhang", "", new { style = "display:none;" })%>
            <%: Html.TextBox("diachi", "", new { style = "display:none;" })%>
            <%: Html.TextBox("phanloai", "", new { style = "display:none;" })%>
            <%: Html.TextBox("thanhtoan", "", new { style = "display:none;" })%>
            <%: Html.TextBox("xetangbo", "", new { style = "display:none;" })%>
            <%: Html.TextBox("diadiemtangbo", "", new { style = "display:none;" })%>
            <%: Html.TextBox("xevanchuyen", "", new { style = "display:none;" })%>
            <%: Html.TextBox("sanpham", "", new { style = "display:none;" })%>
            <%: Html.TextBox("nhapxuat", "", new { style = "display:none;" })%>
            <%: Html.TextBox("bentravanchuyen", "", new { style = "display:none;" })%>
            <%: Html.TextBox("khachhang", "", new { style = "display:none;" })%>
            <%: Html.TextBox("ghichu", "", new { style = "display:none;" })%>
             <%: Html.TextBox("tracuoctb", "", new { style = "display:none;" })%>
            <%: Html.TextBox("tracuocvc", "", new { style = "display:none;" })%>
            <input type="submit" name="btnLoadPageSearch" value="send" style="display:none" />
        <%
   }
     %>